package IA.GA.editorial;

import org.jgap.Configuration;
import org.jgap.InvalidConfigurationException;
import org.jgap.impl.CrossoverOperator;
import org.jgap.impl.GaussianMutationOperator;
import org.jgap.impl.MutationOperator;
import org.jgap.impl.SwappingMutationOperator;
import org.jgap.impl.TournamentSelector;


public class Config2 extends AbstractConfigFactory {

	@Override
	public void setParameters(Configuration conf)throws InvalidConfigurationException {	
		CrossoverOperator operator = new CrossoverOperator(conf,2);		
		conf.addGeneticOperator(operator);
		
		conf.addGeneticOperator(new MutationOperator(conf,1000));
		
		TournamentSelector selector = new TournamentSelector(conf, 2, 1);		
		conf.addNaturalSelector(selector,true);
	}
}
